package photobox.account

/**
 * 地址领域类
 */
class Address {

    Region  province  //省份
    Region  city      //城市
    Region  district  //区
    String  address
    String  consignee //收货人

    String  postCode

    static belongsTo = [user:User]

    static mapping = {
        table  'acc_address'
    }

    static constraints = {
        address  size: 0..200
        postCode  size: 0..20
        consignee size: 0..50
    }
}
